using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.IO;
using System.Text;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;
using Microsoft.AceEngineering.SPM.SPMDataLayer;
using System.Collections;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class ApplicationsBL
    {
        public static void EnterApplication(ApplicationCDE appData, string attributeList, string contactsList)
        {
            ApplicationsDL.EnterApplication(appData, attributeList, contactsList);
        }

        public static ApplicationCDE GetApplication(string name, int appID)
        {
            return ApplicationsDL.GetData(name, appID);
        }

        public static ArrayList GetSearchApplicationData(string name, int appID)
        {
            return ApplicationsDL.GetSearchApplicationData(name, appID);
        }

        public static void UpdateApplication(ApplicationCDE appData, string attributeList, string contactsList)
        {
            ApplicationsDL.UpdateApplication(appData, attributeList, contactsList);
        }

        public static ApplicationCDE GetApplicationDataByID(int appID)
        {
            return ApplicationsDL.GetApplicationDataByID(appID);
        }

        public static List<ApplicationContactCDE> GetContactsByAppID(int appID)
        {
            return ApplicationsDL.GetContactsByAppID(appID);
        }

        public static List<PropertyCDE> GetSelectedAttributesforApplication(int appID)
        {
            return ApplicationsDL.GetSelectedAttributeData(appID);
        }


        public static string InsertApplication(ApplicationCDE app, string attributeList, string contactsListXML)
        {
            return ApplicationsDL.InsertApplication(app, attributeList, contactsListXML);
        }
    }
}
